package classes.stringbuffer;

/**
 * @author : DuJiabao
 * @Date : 2021/1/21 11:27
 * @Project : java_learning
 * @File : null.java
 * @Desc :
 */
public class StringTest2 {
    String str = new String("good");
    char[] ch = {'t', 'e', 's', 't'};

    public void change(String str, char ch[]) {
        str = "test ok";
        ch[0] = 'b';
    }

    public static void main(String[] args) {
        StringTest2 ex = new StringTest2();
        ex.change(ex.str, ex.ch);
        System.out.print(ex.str + " and ");//
        System.out.println(ex.ch);
    }
}
